import { http } from '@/utils/request';
import { IResponse } from '@/api/types';

//列表
export const remoteList = (params: any) => {
    return http.get<IResponse>('/sys/dict/type/queryList', { params })
}
//新增
export const add = (data: any) => {
    return http.post<IResponse>('/sys/dict/type/create', data)
}
//删除
export const remove = (params: any) => {
    return http.delete<IResponse>('/sys/dict/type/delete', { params })
}
//更新
export const update = (data: any) => {
    return http.put<IResponse>('/sys/dict/type/update', data)
}